<#if items??>
<#list items as item>
  <input type="checkbox"
    <#if itemValue??>value="${item[itemValue]}"<#else>value="${item}"</#if>
    <#if id??>id="${id}${item?counter}"</#if>
    <#if name??>name="${name}"</#if>
    <#if class?has_content>class="${class}"</#if>
    <#if style?has_content>style="${style}"</#if>
    <#if lang??>lang="${lang}"</#if>
    <#if title??>title="${title}"</#if>
    <#if dir??>dir="${dir}"</#if>
    <#if tabindex??>tabindex="${tabindex}"</#if>
    <#if onclick??>onclick="${onclick}"</#if>
    <#if ondblclick??>ondblclick="${ondblclick}"</#if>
    <#if onmousedown??>onmousedown="${onmousedown}"</#if>
    <#if onmouseup??>onmouseup="${onmouseup}"</#if>
    <#if onmouseover??>onmouseover="${onmouseover}"</#if>
    <#if onmousemove??>onmousemove="${onmousemove}"</#if>
    <#if onmouseout??>onmouseout="${onmouseout}"</#if>
    <#if onkeypress??>onkeypress="${onkeypress}"</#if>
    <#if onkeyup??>onkeyup="${onkeyup}"</#if>
    <#if onkeydown??>onkeydown="${onkeydown}"</#if>
    <#if onfocus??>onfocus="${onfocus}"</#if>
    <#if onblur??>onblur="${onblur}"</#if>
    <#if onchange??>onkeydown="${onchange}"</#if>
    <#if accesskey??>accesskey="${accesskey}"</#if>
    <#if disabled>disabled="${disabled}"</#if>
    <#if readonly>readonly="${readonly}"</#if>
    <#if boundValue??>
    <#if (item[itemValue])?? && boundValue?split(",")?seq_contains(item[itemValue])>checked="checked"</#if>
    <#if item?? && boundValue?split(",")?seq_contains(item)>checked="checked"</#if>
    </#if>
    &&
  />
  <label
     <#if id??>for="${id}${item?counter}"</#if>
  ><#if itemLabel??>${item[itemLabel]}<#else>${item}</#if>
  </label>
</#list>
</#if>